﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions.Mapper;
using ZLWeb.WebApiEntityBase;

namespace ZLWeb.WebApiEntity.WechatCardModel
{
    public class AccInfo : ResponseResultInfo
    {
        /// <summary>
        ///  账户显示名称
        /// </summary>
        public string accname { get; set; }

        /// <summary>
        ///  账户状态标识（0-正常 2-休眠）
        /// </summary>
        public short accsta { get; set; }

        /// <summary>
        ///  状态描述
        /// </summary>
        public string accstasm { get; set; }

        /// <summary>
        ///  卡种id
        /// </summary>
        public int acccgsid { get; set; }

        /// <summary>
        ///  折扣类别id
        /// </summary>
        public int accdisid { get; set; }

        /// <summary>
        ///  手机号
        /// </summary>
        public string acccellno { get; set; }

        /// <summary>
        ///  账户id加密值
        /// </summary>
        public string dycardno { get; set; }

        /// <summary>
        ///  操作时间
        /// </summary>
        public DateTime? doprtime { get; set; }

        /// <summary>
        ///  账户资料：会员性别&手机号码&农历生日&阳历生日
        /// </summary>
        public string accinfo { get; set; }

        /// <summary>
        /// 折扣类别失效时间
        /// </summary>
        public DateTime? accdissxsj { get; set; }

        /// <summary>
        ///  账户资料：会员性别&手机号码&农历生日&阳历生日
        /// </summary>
        public string accsleeppwd { get; set; }
    }

    public class AccInfoMapper : ClassMapper<AccInfo>
    {
        public AccInfoMapper()
        {
            Table("#AccInfo");
            Map(f => f.accname).Column("accname");
            Map(f => f.accsta).Column("accsta");
            Map(f => f.accstasm).Column("accstasm");
            Map(f => f.acccgsid).Column("acccgsid");
            Map(f => f.accdisid).Column("accdisid");
            Map(f => f.acccellno).Column("acccellno");
            Map(f => f.dycardno).Column("dycardno");
            Map(f => f.doprtime).Column("doprtime");
            Map(f => f.accinfo).Column("accinfo");
            Map(f => f.accdissxsj).Column("accdissxsj");
            Map(f => f.accsleeppwd).Column("accsleeppwd");
        }
    }
}
